package org.example.feign;

import feign.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@Component
@FeignClient(url = "http://127.0.0.1:5000", name = "api")
public interface ApiFeign {
	@PostMapping(value = "", consumes = "multipart/form-data")
	Response upload(@RequestPart("img") MultipartFile file);
}
